$(document).ready(function(){
    
        var container = $('div.container');
        
        // validate the form when it is submitted
        validator = $("#form1").validate({
            submitHandler: function(form) {
                form.submit();    
            },
            errorContainer: container,
            errorLabelContainer: $("ol", container),
            wrapper: 'li',
            meta: "validate",
            focusInvalid:false,
            rules: {                   
                "fieldMap['planProductDate'].value":{  //规划投产时间
                  required: true
                },                 
                "fieldMap['locationIssued.planTime'].value":{  //选址任务下达规划时间
                    required: true
                },                   
                "fieldMap['locationApproval.planTime'].value":{  //规划选址批复时间
                    required: true
                },                   
                "fieldMap['feasibleReport.planTime'].value":{  //可研报告上报时间
                    required: true
                },         
                "fieldMap['feasibleApproval.planTime'].value":{  //可研批复规划时间
                    required: true
                },                 
                "fieldMap['submitApproval.planTime'].value":{  //上报核准规划时间
                    required: true
                },   
                "fieldMap['approval.planTime'].value":{  //核准批复规划时间
                    required: true
                }
            },
            
            messages:{
            	
                "fieldMap['planProductDate'].value":{   //规划投产时间
                	
                    required: "请填写规划投产时间！"
                },
                "fieldMap['locationIssued.planTime'].value":{   //选址任务下达规划时间
                    required: "请填写计划选址任务下达时间！"
                },
                "fieldMap['locationApproval.planTime'].value":{   //规划选址批复时间
                    required: "请填写规划选址批复时间！"
                },
                "fieldMap['feasibleReport.planTime'].value":{   //可研报告上报时间
                    required: "请填写可研报告上报时间！"
                },
                "fieldMap['feasibleApproval.planTime'].value":{   //可研批复规划时间
                    required: "请填写计划可研批复时间！"
                },
                "fieldMap['submitApproval.planTime'].value":{   //上报核准规划时间
                    required: "请填写计划上报核准时间！"
                },
                "fieldMap['approval.planTime'].value":{   //核准批复规划时间
                    required: "请填写计划核准批复时间！"
                }
            }
        });
        });
        
        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     